package student_system.bean;

public class course {
    private String cno;
    private String cname;
    private int credit;
    private String ctime;
    private int quota;
    public course(){

    }

    public course(String cno, String cname, int credit, String ctime, int quota) {
        this.cno = cno;
        this.cname = cname;
        this.credit = credit;
        this.ctime = ctime;
        this.quota = quota;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public int getQuota() {
        return quota;
    }

    public void setQuota(int quota) {
        this.quota = quota;
    }

    @Override
    public String toString() {
        return "\ncourse{" +
                "cno='" + cno + '\'' +
                ", cname='" + cname + '\'' +
                ", credit=" + credit +
                ", ctime='" + ctime + '\'' +
                ", quota=" + quota +
                '}';
    }
}
